﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using DTC.Database;

namespace DTC.Assistants
{
    class Optimum
    {
        public DTCBox box { get; set; }
        public DTCDrugPack drugPack { get; set; }
        public int packcount { get; set; }
        public int boxcount { get; set; }
        public Optimum()
        {
            box = new DTCBox();
            drugPack = new DTCDrugPack();
            Value = new ArrayList();
            Count = new ArrayList();
        }
        private double val;
        public double Val
        {
            get { return val; }
            set { val = value; }
        }
        private ArrayList value;
        public ArrayList Value
        {
            get { return value; }
            set { this.value = value; }
        }
        private int cnt;
        public int Cnt
        {
            get { return cnt; }
            set { cnt = value; }
        }
        private ArrayList count;
        public ArrayList Count
        {
            get { return count; }
            set { count = value; }
        }

        public string FullName
        {
            get
            {
                string str = "";
                for (int i = 0; i < Value.Count; i++)
                    str += "Value: " + Convert.ToString(Value[i]) +
                        " Count: " + Convert.ToString(Count[i]) + "\n";
                str += "=Value: " + Convert.ToString(Val) +
                        " Count: " + Convert.ToString(cnt) + "\n";
                return str;
            }
        }
    }
}
